1 #include "Author.h"
2
3 Author::Author()
4 {
5     idNumber =
1234;
6     yearOfDeath =
1234;
7 }

8
9 int
Author::getIdNumber() const
10 {
11     
return idNumber;
12 }

13
14 int
Author::getYearOfDeath() const
15 {
16     
return yearOfDeath;
17 }

18
19 void
Author::setIdNumber(const int newIdNumber)
20 {
21     idNumber = newIdNumber;
22 }

23
24 void
Author::setYearOfDeath(const int newYearOfDeath)
25 {
26     yearOfDeath = newYearOfDeath;
27 }

28
29 void
Author::printAuthorInfo() const
30 {
31     printName();
32     cout << idNumber <<
' ' << getDateOfBirth() << '-' << yearOfDeath << endl;
33 }
34
35 Author::~Author()
36 {
37
38 }


Gõ tìm kiếm nhanh...